<template>
    <div>
        <h1>{{ title }}--count:{{ count }}</h1>
        <button @click="changeCount">该变值</button>
    </div>
</template>

<script>
import count from "@/mixins/count";
export default {
    name: "One",
    data() {
        return {
            title: "One",
        };
    },
    mixins: [count],
    mounted() {
        console.log("One");
    },
};
</script>

<style></style>
